﻿<UserControl x:Class="Starehe.Views.SchoolSetup"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:Controls="clr-namespace:Helper.Controls;assembly=Helper"
      mc:Ignorable="d" 
      d:DesignHeight="600" d:DesignWidth="900"
	Background="White">

    <Grid >
        <TextBlock HorizontalAlignment="Left" Margin="20,20,0,0" Style="{DynamicResource Title}"  Text="School Setup" VerticalAlignment="Top"/>
        <Grid Margin="40,80,0,0" DataContext="{Binding School}">
            <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Style="{DynamicResource Title0}" Text="Name of School" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="26,35,0,0" MaxLength="45" VerticalAlignment="Top" Width="370"
        		Text="{Binding Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="401,51,0,0" Text="(Max 49 char)" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Margin="0,90,0,0" Style="{DynamicResource Title0}" Text="Contact Info." VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Margin="6,137,0,0" Text="Address" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="75,130,0,0" MaxLength="20" VerticalAlignment="Top" Width="185"
        		Text="{Binding Address, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="6,182,0,0" Text="City" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="75,175,0,0" MaxLength="20" VerticalAlignment="Top" Width="185"
        		Text="{Binding City, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>

            <TextBlock HorizontalAlignment="Left" Margin="6,227,0,0" Text="Postal Code" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="75,220,0,0" MaxLength="20" VerticalAlignment="Top" Width="185"
        		Text="{Binding PostalCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="272,137,0,0" Text="Tel. No." VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="341,130,0,0" MaxLength="20" VerticalAlignment="Top" Width="185"
        		Text="{Binding PhoneNo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="272,182,0,0" Text="Tel. No. (alt)" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="341,175,0,0" MaxLength="20" VerticalAlignment="Top" Width="185"
        		Text="{Binding AltPhoneNo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="531,191,0,0" Text="(optional)" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Margin="272,227,0,0" Text="Email" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="341,220,0,0" MaxLength="49" VerticalAlignment="Top" Width="300"
        		Text="{Binding Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="540,137,0,0" Text="Fax" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="23" Margin="564,130,0,0" MaxLength="20" VerticalAlignment="Top" Width="185"
        		Text="{Binding Fax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBlock HorizontalAlignment="Left" Margin="0,270,0,0" Style="{DynamicResource Title0}" Text="Motto (opt.)" VerticalAlignment="Top"/>
            <TextBox HorizontalAlignment="Left" Height="132" Margin="26,305,0,0" TextWrapping="Wrap" AcceptsReturn="True" 
        		VerticalScrollBarVisibility="Visible" VerticalAlignment="Top" Width="370" MaxLength="49" MaxLines="3"
        		Text="{Binding Motto, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
        </Grid>
        <Button Content="Save" HorizontalAlignment="Right" Margin="0,0,20,20" Width="90" Height="32" VerticalAlignment="Bottom"
                Command="{Binding SaveCommand}"/>

    </Grid>
</UserControl>
